package com.seari.tunnel.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.seari.tunnel.entity.CorridorIn;
import com.seari.tunnel.entity.CorridorInParam;
import com.seari.tunnel.mapper.CorridorInMapper;
import com.seari.tunnel.service.IAcceptService;

@Service(IAcceptService.SERVICE_NAME)
public class AcceptServiceImpl implements IAcceptService{
	@Autowired
	CorridorInMapper corridorInMapper;
	
	@Override
	public List<CorridorIn> findAccepts() {
		
		return corridorInMapper.getAccepts();
	}

	@Override
	public List<CorridorIn> findCompSelect() {
		
		return corridorInMapper.getCompSelect();
	}

	@Override
	public void addAccept(CorridorIn corridorIn) {
		corridorInMapper.addAccept(corridorIn);
		
	}

	@Override
	public void updateAccept(CorridorIn corridorIn) {
		corridorInMapper.updateAccept(corridorIn);
		
	}

	@Override
	public void modifyAccept(CorridorInParam corridorInParam) {
		corridorInMapper.modifyAccept(corridorInParam);
		
	}

	@Override
	public List<CorridorInParam> findfinishAccepts() {
		
		return corridorInMapper.findfinishAccepts();
	}

	@Override
	public void deleteAccpet(int id) {
		
		corridorInMapper.deleteById(id);
	}
	
}
